/**
 * This file is a part of qloudgen-rul. 
 * You can redistribute qloudgen-rul and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-rul is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.qloudgen.rul.curator;

/**
 * <p>Title: Curator Framework Wrapper</p>
 * <p>Description: Wrapper curator framework recipes cache definition.</p>
 * <p>Copyright: qloudgen/rul 2014</p>
 * @author <a href="mailto:hyq.dd.sun@gmail.com">glue.3M</a>
 */
public interface CuratorPathCache extends CuratorClient {
	/**
	 * Added child.
	 *
	 * @param path
	 * @param data
	 */
	public void addChild(String path , byte[] data);
	
	/**
	 * Updated child.
	 *
	 * @param path
	 * @param data
	 */
	public void updateChild(String path , byte[] data);
	
	/**
	 * Removed child.
	 *
	 * @param path
	 */
	public void removeChild(String path);
	
	/**
	 * Check child.
	 *
	 * @return boolean
	 */
	public boolean isExist(String path);
}